import request from '@/utils/request'

// 查询酒店房型信息列表
export function listHotelRoom(query) {
  query.pageNum = 1
  query.pageSize = 999
  return request({
    url: '/logex/hotelRoom/list',
    method: 'get',
    params: query
  })
}

// 查询酒店房型信息详细
export function getHotelRoom(id) {
  return request({
    url: '/logex/hotelRoom/' + id,
    method: 'get'
  })
}

// 新增酒店房型信息
export function addHotelRoom(data) {
  return request({
    url: '/logex/hotelRoom',
    method: 'post',
    data: data
  })
}

// 修改酒店房型信息
export function updateHotelRoom(data) {
  return request({
    url: '/logex/hotelRoom',
    method: 'put',
    data: data
  })
}

// 删除酒店房型信息
export function delHotelRoom(id) {
  return request({
    url: '/logex/hotelRoom/' + id,
    method: 'delete'
  })
}
